package com.msb.mall.product.vo;

import com.msb.mall.product.entity.SkuImagesEntity;
import com.msb.mall.product.entity.SkuInfoEntity;
import com.msb.mall.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * 商品详情页的数据对象
 */
@Data
public class SpuItemVO {

    //1.sku的基本信息 pms_sku_info
    SkuInfoEntity info;

    boolean hasStock = true;//是否有库存
    //2.sku的图片信息 pms_sku_images
    List<SkuImagesEntity> images;
    //3.sku的销售属性
    List<SkuItemSaleAttrVo> saleAttrs;
    //4.获取spu的介绍
    SpuInfoDescEntity desc;
    //5.获取spu的规格参数信息
    List<SpuItemGroupAttrVo> groupAttrs;

    //6.绑定的对应的秒杀服务商品
    SeckillVo seckillVo;

}
